package com.mytest;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * @author chengxucai
 */
@MapperScan("com.mytest.test.mapper")
@SpringBootApplication
public class MybatisPlusApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext application = SpringApplication.run(MybatisPlusApplication.class, args);
        Environment env = application.getEnvironment();
        String port = env.getProperty("server.port");
        System.out.print("\n----------------------------------------------------------\n\t" +
                "SwaggerConfig Access URL:\n\t" +
                "Local: \t\thttp://localhost:" + port + "/doc.html#/home\n\t" +
                "----------------------------------------------------------");
    }

}
